import { http } from '@/utils/http'
//保存接口
export function processRecords(data) {
  return http({
    url: `/api/production-process-records/upsert`,
    method: "post",
    data
  });
}
//分论编号反显接口
export const saomarequest1 = (trackingNo) => {
  return http({
    url: `/api/production-rounds/tracking-no/${trackingNo}`,
    method: 'get',
  })
}

//工序名称下拉框接口
export const processProcessDictionary = () => {
  return http({
    url: `/zgjmAPI/management/process/processDictionary`,
    method: 'get',
  })
}


//机台下拉框接口
export const machineallApi = () => {
  return http({
    url: `/zgjmAPI/management/machine/machineDictionary`,
    method: 'get',
  })
}

//炉管号下拉框接口
export const machinefurnaceallApi = (machineId) => {
  return http({
    url: `/zgjmAPI/management/machine/furnace/Dictionary?machineId=${machineId}`,
    method: 'get',
  })
}